package com.yaoxuguang.concurrence.wait_notify.join.join_sleep_different;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.wait_notify.join.join_sleep_different
 * @Description: 测试sleep不释放锁
 * @date 2018年12月24日14:09
 */
public class Run {
    public static void main(String[] args) {
        try {
            SleepThreadB b = new SleepThreadB();

            SleepThreadA a = new SleepThreadA(b);
            a.start();
            Thread.sleep(1000);

            SleepThreadC c = new SleepThreadC(b);
            c.start();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
